/**
 * 常量类
 */
package com.flute.framework.data.constants;

import java.io.File;

import com.flute.framework.data.impl.ServiceContext;

/**
 * @author Jazz
 * 
 */
public final class Constants {
	private Constants() {
		throw new RuntimeException("Cannot instance Constants object");
	}

	public static final String EMPTY = "";
	public static final String NEW = "new";
	public static final String HISTORY = "history";
	public static final String SUCCEED = "succeed";
	public static final String FAILED = "failed";
	public static final String UTF8_CHARSET = "UTF-8";
	public static final String DATA_DIR_PATH = ServiceContext.getRootDir()
			+ "data";
	public static final String TMP_SUFFIX = ".tmp";
	public static final String XML_SUFFIX = ".xml";
	public static final String DATE_PATTERN = "yyyy-MM-dd";
	public static final String SONG_TYPE = "song";
	private static final String DATA_SONG_PATH = Constants.DATA_DIR_PATH
			+ File.separator + Constants.SONG_TYPE;
	public static final String SINGER_TYPE = "singer";
	private static final String DATA_SINGER_PATH = Constants.DATA_DIR_PATH
			+ File.separator + Constants.SINGER_TYPE;
	public static final String STRING_TYPE = "java.lang.String";
	public static final String GET_METHOD_PRIFIX = "get";

	public static final String SONG_HISTORY_PATH = DATA_SONG_PATH
			+ File.separator + HISTORY;
	public static final String SONG_SUCCEED_PATH = DATA_SONG_PATH
			+ File.separator + SUCCEED;
	public static final String SONG_FAILED_PATH = DATA_SONG_PATH
			+ File.separator + FAILED;
	public static final String SONG_NEW_PATH = DATA_SONG_PATH + File.separator
			+ NEW;

	public static final String SINGER_HISTORY_PATH = DATA_SINGER_PATH
			+ File.separator + HISTORY;
	public static final String SINGER_SUCCEED_PATH = DATA_SINGER_PATH
			+ File.separator + SUCCEED;
	public static final String SINGER_FAILED_PATH = DATA_SINGER_PATH
			+ File.separator + FAILED;
	public static final String SINGER_NEW_PATH = DATA_SINGER_PATH
			+ File.separator + NEW;

	public static final String IS_TOP_FIELD = "istop";

	public static final String SONG_ID_FIELD = "song_id";

	public static final String SINGER_ID_FIELD = "singer_id";

	public static final String ALBUM_ID_FIELD = "album_id";

	public static final String TABLE_NAME = "@tableName";

	public static final String BUSINESS_COUNT = "business_count";

	public static final String B_COUNT = "bcount";

	public static final String WHERE = " WHERE ";

	public static final String GROUP_BY = " GROUP BY ";

	public static final String ORDER_BY = " ORDER BY ";

	public static final String LIMIT = " LIMIT ";

	public static final String AND = " AND ";

	public static final String TRUE_CLAUSE = " 1=1 ";

	public static final String COMMA = ",";

	public static final String DOCUMENT_ID = "documentID";

	public static final String SNAPSHOT = "snapshot";

	public static final String INDEX = "index";

	public static final String HISTORY_RECORDS = "all_records";

	public static final String SONG_TABLE_NAME = "songTableName";

	public static final String CHECK_SUM_PATH = "checkSumPath";

	public static final String CHECK_SUM_FAILED_PATH = "checkSumFailedPath";

	public static final String CHECK_SUM_BACKUP_PATH = "checkSumBackupPath";

	public static final String SINGER_TABLE_NAME = "singerTableName";

	public static final String ALBUM_TABLE_NAME = "albumTableName";

	public static final String UPDATE_FIELD = "update_field";

	public static final String FACTOR = "factor";

	public static final String ADD_FIELD = "add_field";

	public static final String CHECK_SUM = "checksum";

	public static final String LESS_THAN_AND_EQUAL = " <= ";

	public static final String LESS_THAN = " < ";

	public static final String UPDATE_DATE = "updateDate";

	public static final String CREATE_DATE = "createDate";
}
